Skip to content

Improve Orca Optimization and Frequency Convergence Settings#888

Merged
Lilachn91 merged 1 commit into
mainfrom
orca_opt_freq
Jun 4, 2026
Merged

Improve Orca Optimization and Frequency Convergence Settings#888
Lilachn91 merged 1 commit into
mainfrom
orca_opt_freq

Conversation

@Ophir-Weisz

@Ophir-Weisz Ophir-Weisz commented May 13, 2026

Copy link
Copy Markdown

Enhanced frequency calculations to use defgrid3 instead of defgrid2, for consistency with the DFT grid of the fine opt job.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates ARC’s ORCA adapter defaults to improve optimization convergence behavior, align DFT grid settings between fine optimization and frequency calculations, and enhance TS optimizations with periodic Hessian recalculation. It also adds unit tests to validate the new ORCA input generation behavior.

Changes:

  • Set ORCA default optimization convergence to TightOpt (previously NormalOpt).
  • Default DFT grid selection to defgrid3 for freq/optfreq (and for fine optimizations), while keeping regular opt at defgrid2.
  • For TS optimizations (OptTS), add Recalc_Hess 5 to the %geom block, and add corresponding unit tests for grid/convergence/TS Hessian settings.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
arc/settings/settings.py Updates ORCA default optimization convergence (opt_convergence) to TightOpt.
arc/job/adapters/orca.py Adjusts default DFT grid behavior for freq/optfreq and adds Recalc_Hess 5 for OptTS.
arc/job/adapters/orca_test.py Adds unit tests covering DFT grid defaults, TightOpt presence, and TS %geom Hessian recalc settings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread arc/job/adapters/orca.py Outdated
Comment thread arc/job/adapters/orca.py Outdated
@codecov

codecov Bot commented May 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.59%. Comparing base (3600cbe) to head (c6b57e4).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #888      +/-   ##
==========================================
- Coverage   60.59%   60.59%   -0.01%     
==========================================
  Files         103      103              
  Lines       31186    31186              
  Branches     8128     8128              
==========================================
- Hits        18898    18896       -2     
+ Misses       9936     9931       -5     
- Partials     2352     2359       +7     
Flag Coverage Δ
functionaltests 60.59% <ø> (-0.01%) ⬇️
unittests 60.59% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread arc/job/adapters/orca_test.py Fixed
Comment thread arc/job/adapters/orca.py Outdated
self.add_to_args(val="""
%geom
Calc_Hess true # calculation of the exact Hessian before the first opt step
Recalc_Hess 5

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note that this is very expensive, and sometimes leads to stability issues. We should also reconsider the earlier line, and putting it as a trash and not default.

@Lilachn91 Lilachn91 merged commit 8f33f9c into main Jun 4, 2026
7 of 8 checks passed
@Lilachn91 Lilachn91 deleted the orca_opt_freq branch June 4, 2026 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants